package edu.zju.gis.dldsj.service;

import edu.zju.gis.dldsj.base.BaseService;
import edu.zju.gis.dldsj.entity.DataVisit;
import edu.zju.gis.dldsj.entity.UserData;
import edu.zju.gis.dldsj.entity.vo.UserDataWithVisit;

import java.util.List;

/**
 * @author yanlo yanlong_lee@qq.com
 * @version 1.0 2018/08/09
 */
public interface UserDataService extends BaseService<UserData, String> {
    int getTotalSize();

    int getTotalSize(String userId);

    List<UserData> getByUser(String userId, int offset, int size);

    int insert(DataVisit dataVisit);

    void update(DataVisit dataVisit);

    void delete(int dataVisitId);

    DataVisit getVisit(String dataId);

    List<DataVisit> getVisit(List<String> dataIdList);

    List<UserDataWithVisit> getByVisitAsc(String userId, int offset, int size);

    List<UserDataWithVisit> getByVisitDesc(String userId, int offset, int size);
}
